#ifndef COORDINATE_HPP
#define COORDINATE_HPP

#include "coordinate.hpp"
#include <cstdint>
#include <iostream>

// 在这里定义你的类或函数声明
// 例如：
// class Coordinate {
//     // 类的定义
// };

#endif  // COORDINATE_HPP
#define RED 1
#define BLACK 0

class piece{
private:
  string name;
  coordinate coor;
  bool color;
  bool life;
public:
  piece(string a,coordinate b,bool c){
    name=a;
    coor=b;
    color=c;
  }
  void updatecoor(piece &,const coordinate &)noexcept;
  inline bool islife(){return life;}
  inline bool setlife(bool l){life = l;}
  inline bool getcolor(){return color;}
  inline bool setcolor(bool c){color = c;}
  inline coordinate getcoor(){return coor;}
  inline coordinate setcoor(coordinate c){coor = c;}

  ~piece(){}
};